package com.hotel.timer;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.hotel.dao.CheckInDao
@Component
public class CheckTimer {
	private CheckInDao checkInDao;
    @Scheduled(cron = "0 0 12 * * ? ") // 间隔5秒执行
    public void taskCycle() {
        //System.out.println("使用SpringMVC框架配置定时任务");
		checkInDao.clearOverDue();
    }
}
